package com.xmy.study.util;

import java.util.HashMap;
import java.util.Map;

public class ConfigData {

    public static String[] getQuarterArr(){
        String[] quarterNameArr = {"无","寒","春","暑","秋"};
        return quarterNameArr;
    }

    public static String getQuarterForNum(Integer num){
        String[] quarterNameArr = {"无","寒","春","暑","秋"};
        return quarterNameArr[num];
    }

    public static String getYearClassForNum(Integer num){
        String[] yearClassArr = {"幼儿园","一年级","二年级","三年级","四年级","五年级","六年级","初一","初二","初三","高一","高二","高三"};
        return yearClassArr[num];
    }

    public static String getSubjectsNameForNum(Integer num){
        String[] yearClassArr = {"","英语","数学","物理"};
        return yearClassArr[num];
    }

    /**
     *获取下一个季度
     * @param yearPart
     * @param num
     * @return
     */
    public static Map<String,Integer> getNextQuarter(int yearPart, int num){
        Map<String,Integer> map = new HashMap<>();
        int newYearPart = yearPart;
        int newNum = num+1;
        if(newNum>4){
            newNum = 1;
            newYearPart = newYearPart+1;
        }
        map.put("yearPart",newYearPart);
        map.put("num",newNum);
        return map;
    }
}
